package sh.wn36.vehiclemanage.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import sh.wn36.vehiclemanage.entity.QMenu;
import sh.wn36.vehiclemanage.mapper.QMenuMapper;
import sh.wn36.vehiclemanage.service.QMenuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xk
 * @since 2021-04-26
 */
@Service
public class QMenuServiceImpl extends ServiceImpl<QMenuMapper, QMenu> implements QMenuService {
    @Autowired
        private QMenuMapper qMenuMapper;


    @Override
    public List<QMenu> findByPid(int id) {
        List<QMenu> byPid = qMenuMapper.findByPid(id);
        return byPid;
    }
}
